import { IsNotEmpty, IsString } from 'class-validator';
import { ApiProperty } from '@nestjs/swagger';

export class CreateReplyDto {
  @ApiProperty({
    description: '回复内容',
    example: '这是一条回复',
  })
  @IsNotEmpty({ message: '回复内容不能为空' })
  @IsString({ message: '回复内容必须是字符串' })
  content: string;

  @ApiProperty({
    description: '帖子ID',
    example: 1,
  })
  @IsNotEmpty({ message: '帖子ID不能为空' })
  postId: number;
}
